<template>
  <h1 @click="testHello">
    Hello ketty
  </h1>
</template>

<script lang="ts">
import {Component, Vue} from 'vue-property-decorator'
import {loginSvr} from '@/service/loginSvr'

@Component
export default class Login extends Vue {

    private loginSvr: loginSvr = new loginSvr();

    testHello() {
        this.loginSvr.login("1212313213", "12132113").then(value => {
            localStorage.setItem('customer_token', "value");
        }).catch(error => {
            alert("error")
        })
        // this.loginSvr.index()
        this.$router.push("/")
    }
}
</script>

<style scoped lang="scss">

</style>
